# @Version        : 1.0
# @Update Time    : 2025/8/16 20:43
# @File           : __init__.py.py
# @IDE            : PyCharm
# @Desc           : 文件描述信息
from fastapi import FastAPI, APIRouter
from .index import route as index_route
from .passport import route as port_route
from .rights import route as rights_route
from .user import route as user_route
from .dept import route as dept_route
from .role import route as role_route
from .power import route as power_route
from .log import router as log_router
from .monitor import route as monitor_route
from .dict import route as dict_route
from .mail import route as mail_route
from .file import route as file_route

router = APIRouter(prefix="/system")


def register_system_route(app: FastAPI):
    router.include_router(port_route)
    router.include_router(rights_route)
    router.include_router(user_route)
    router.include_router(dept_route)
    router.include_router(role_route)
    router.include_router(power_route)
    router.include_router(log_router)
    router.include_router(monitor_route)
    router.include_router(dict_route)
    router.include_router(mail_route)
    router.include_router(file_route)
    app.include_router(index_route)
    app.include_router(router)
